﻿<%@ Page Language="C#" Inherits="E.Web.training.course.CourseList" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>课程列表</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_course.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
</head>
<body>
  <form id="form1" method="post" action="?act=s">  
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <img alt="" src="/images/training/icon/coursesearch.gif" class="fl" />
        <div class="title">&nbsp;课程查询</div>
      </div>
      <div class="spe_line_1"></div>
      <div style="width:650px; height:23px; margin-top:6px;">
        <div class="fl" style="line-height:23px;">课程名称：</div>
        <div class="fl"><input type="text" id="CourseNameTxt" name="CourseNameTxt" value="<%=coursename %>" /></div>
        <div class="fl" style="line-height:23px;">&nbsp;类别：</div>
        <div class="fl">
          <select id="CategorySlt" name="CategorySlt" style="*margin-top:2px; _margin-top:2px;">
            <option value="-1">请选择</option>
            <% if (cc_list.Count > 0) { %>
              <% foreach (CourseCategoryModel model in cc_list) { %>
            <option value="<%=model.ID %>"><%=model.Name%></option>
              <% } %>
            <% } %>
          </select>
        </div>
        <div class="fl">&nbsp;&nbsp;<input type="image" style="width:54px; height:23px;" src="/images/training/btn/search.gif" /></div>
      </div>
    </div>
    
    <div class="block">
      <div style="width:650px; height:22px;">
        <img alt="" src="/images/training/icon/courseschedule.gif" class="fl" />
        <div class="title">&nbsp;课程时间表</div>
      </div>
      <div class="spe_line_2"></div>
      
    <% if (studyList != null && studyList.Count > 0) { %>
    
      <div id="scheduledatatable">
        <div class="s_rows" style="font-weight:bolder;">
          <div class="s_r_t">课程名称</div>
          <div class="s_r_tn">讲师</div>
          <div class="s_r_c">类别</div>
          <div class="s_r_d">开放时间</div>
          <div class="s_r_l">课时</div>
          <div class="s_r_st">开放状态</div>
          <div class="s_r_s">开始上课</div>
        </div>
        <%--<div class="s_rows">
          <div class="s_r_t">标题标题标题标题标题标题</div>
          <div class="s_r_c">类别asdfsafs</div>
          <div class="s_r_d">2010.5.17-2011.5.17</div>
          <div class="s_r_l">123</div>
          <div class="s_r_st">已开放</div>
          <div class="s_r_s"><a href="#"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
        </div>--%>
        
        <% foreach (StudyLogForListModel model in studyList) { %>
        <div class="s_rows">
          <div class="s_r_t"><%=model.CourseName%></div>
          <div class="s_r_tn"><%=model.TeacherName%></div>
          <div class="s_r_c"><%=model.CourseCategoryName%></div>
          <div class="s_r_d"><%=model.StartTime.ToString("yyyy.M.d")%>-<%=model.EndTime.ToString("yyyy.M.d")%></div>
          <div class="s_r_l"><%=model.SchoolHour%></div>
          <div class="s_r_st"><%=model.IsFull ? "未开放" : "开放"%></div>
          <div class="s_r_s"><a href="/training/study/Study.aspx?id=<%=model.ID %>" target="Study"><img alt="" src="/images/training/icon/arrows_right.gif" style="margin-top:7px;" /></a></div>
        </div>
        <% } %>
        
      </div>
      
      <div class="fr" style="margin:8px 0 0 0;"><%=mypager%></div>
      
    <% } else { %>
    <% } %>
    
    </div>
  </form>
  <% if (categoryid != -1) { %>
  <script type="text/javascript">
  $("#CategorySlt").val(<%=categoryid %>);
  </script>
  <% } %>
</body>
</html>
